package pers.cz.controller;

import pers.cz.service.SystemNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: PostGirl-panent
 * @description: SystemNoticeController
 * @author: Cheng Zhi
 * @create: 2022-03-20 14:24
 **/
@RestController
@RequestMapping(path = "/api/systemNoticeController")
public class SystemNoticeController {

    @Autowired
    SystemNoticeService systemNoticeService;

    @GetMapping(path = "/getSystemNotice")
    public String getSystemNotice() {

        return systemNoticeService.getNotice();
    }
}
